package com.ecar.api.service.pay;

import com.ecar.common.dto.DataBean;

import java.io.IOException;
import java.io.UnsupportedEncodingException;

import javax.servlet.http.HttpServletResponse;

import org.dom4j.DocumentException;


/**
 * 支付相关服务
 * 
 */
public interface PayService {
	/**
	 * 生成支付宝支付参数签名
	 * @param orderId
	 * @return
	 */
	DataBean setAlipaySign(String orderId,String couponActivityId) throws UnsupportedEncodingException;
	

	void checkPayment(String out_trade_no, String total_fee, String trade_no,String dateStr,
			int typeAlipay);

	DataBean setWxAppPaySign(String orderId, String ip,String couponActivityId) throws IOException, DocumentException;;
	
	DataBean setWxH5PaySign(String orderId ,String token) throws IOException, DocumentException;
	
	DataBean setNotWxH5PaySign(String orderId,String ip,HttpServletResponse response) throws IOException, DocumentException;


	void createPayment(String out_trade_no, int total_fee, String out_trade_no2, String time_end, int typeWechat);
}
